package sensimulator.intersection.traffic;

import java.awt.Graphics;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.image.ImageObserver;

import sensimulator.intersection.lanes.Lane;

public class Pedestrians extends TrafficUser {

	static final float SPEED = 0.05f;
	
	static final String[] PEDESTRIAN_SPRITES = { "resources/pedestrian.png" };
	
	public Pedestrians(Lane lane, Point position) {
		super(lane, position, SPEED);
		
		image = Toolkit.getDefaultToolkit().createImage(PEDESTRIAN_SPRITES[(int) (Math.random() * PEDESTRIAN_SPRITES.length)]);
	}

}
